package demo1;

import java.util.concurrent.Callable;

public class Test {
    public static void main(String[] args) {
        Dog dog=new Dog();
        dog.name="小远";
        dog.eat();
        dog.bark();
        System.out.println("----------");
        Cat cat=new Cat();
        cat.name="maomao";
        cat.eat();
        cat.mimi();
    }
}
